<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\Resource;
use Illuminate\Http\Resources\Json\JsonResource;

class RoleResource extends JsonResource
{
    public function toArray($request)
    {
		 return [
           'id' => $this->id,
           'name' => $this->name,
           'desc' => $this->desc,
           'is_system' => $this->is_system,
           'access' => $this->access,
           'created_at' => $this->created_at,
           'updated_at' => $this->updated_at
        ];
    }
}
